
#include<iostream>
#include<string>
#include<vector>

using namespace std;
class Parser
{
public:
	//*************************************************************************
	//Constructor from file name
	//*************************************************************************
	Parser(const char* fn);

	//*************************************************************************
	//copy CTOR
	//*************************************************************************
	Parser(const Parser& prs);

	//*************************************************************************
	//assignment operator
	//*************************************************************************
	const Parser& operator=(const Parser& prs);


	//*************************************************************************
	//divide file to lines and store them in list of strings
	//return 1 if succeeded, 0 otherwise
	//*************************************************************************
	virtual int divideToLines();


	//*************************************************************************
	//get reference to contaner of file lines
	//*************************************************************************
	const vector<string>& getLineContainer() const;

	//*************************************************************************
	//get the number of lines in file
	//*************************************************************************
	int getNumOfLines() const;

	//*************************************************************************
	//printout lines of file
	//*************************************************************************
	void printOutLines() const;

	//*****************************************************************************
	//DTOR
	//*****************************************************************************
	~Parser(void);

private:
	const char* fileName;		//name of file
	int numOfLines;				//number of lines in file
	vector<string> fileLines;	//container for file's lines
};
